﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage2.master" AutoEventWireup="true" CodeFile="Nha-hang-phu-hop.aspx.cs" Inherits="Nha_hang_phu_hop" Title="Untitled Page" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="CSS/nha-hang-phu-hop.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function() {
            $('#res-header ul li').click(function() {
                $('#res-header ul li').removeClass('active');
                $(this).addClass('active');
                return false;
            });
        });
    	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="clearfix">
        <div id="left-pane">
             <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                <div id="appropriate-header" class="clearfix">
                    <p>
                        <asp:Label ID="lblAppropriateName" runat="server" Text=""></asp:Label></p>
                    <ul>
                       <li>
                           <asp:LinkButton ID="LinkButton1" runat="server">Xem nhiều</asp:LinkButton></li> 
                       <li>
                           <asp:LinkButton ID="LinkButton2" runat="server">Bình luận nhiều</asp:LinkButton>
                       <li class="active">
                           <asp:LinkButton ID="LinkButton3" runat="server">Mới nhất</asp:LinkButton> 
                    </ul>
                </div>
                <div class="item_container">
                <ul class="clearfix">
                    <asp:Repeater ID="rptRes" runat="server">
                    <ItemTemplate>
                    <li>
                        <div class="item">
                        <div class="item_image">
                           <a href='<%#"Nha-hang-chi-tiet.aspx?NhaHangID="+Eval("NhaHangID") %>'> <img class="res-image" width="220" height="138" alt="" src='<%#Eval("HinhDaiDien") %>' /></a>
                        </div>
                         <div class="item_title">
                            <p>
                               <a href='<%#"Nha-hang-chi-tiet.aspx?NhaHangID="+Eval("NhaHangID") %>'><%#Eval("TenNhaHang")%></a>
                            </p>
                        </div>
                        <div class="mota">
                            <p><%#Eval("MoTa") %></p>
                        </div>
                        <div class="address">
                            <p>Đường <%# Eval("Duong") %>,<%# Eval("TenHuyenQuan") %>,Tỉnh <%# Eval("TenTinhThanhPho") %></p>
                            
                        </div>
                        
                    </div>
                    </li>
                    </ItemTemplate>
                </asp:Repeater>
                </ul>
                </div>
                </ContentTemplate>
                </asp:UpdatePanel>
        </div>
        <div id="right-pane">
        <div id="top-5-res">
            <div id="top-5-res-header">
                <p>Top điểm đến nổi bật</p>
            </div>
            <div id="top-5-res-content">
                <asp:Repeater ID="Repeater2" runat="server">
                    <ItemTemplate>
                        <div id="item-wrapper">
                        <div style="margin-bottom:8px;padding-left:5px;padding-top:8px;" id="res-title">
                            <a id="A1" runat="server" href='<%#"~/Nha-hang-chi-tiet.aspx?NhaHangID="+Eval("NhaHangID") %>'><%#Eval("TenNhaHang") %></a>
                            </div>
                        <div class="clearfix" style="border-bottom:solid thin #f5f4f4;padding-bottom:12px;padding-left:5px">
                            <div style="float:left;margin-top:2px;">
                            <span>
                                <asp:Rating ID="Rating1" runat="server" StarCssClass="ratingEmpty" WaitingStarCssClass="ratingSaved" EmptyStarCssClass="ratingEmpty" FilledStarCssClass="ratingFilled" CurrentRating='<%#Eval("RateValue") %>' ReadOnly="true">
                                </asp:Rating>
                            </span></div>
                            <div style="float:left"><span style="margin-left:20px;font-size:11px;color:#5f5f62;margin-top:0"> Lượt xem : <asp:Label ID="lblTop5ResViews" runat="server" Text='<%#Eval("LuotXem") %>' ForeColor="#5f5f62" Font-Size="11px"></asp:Label></span></div>
                           <div style="float:left"> <span style="margin-left:20px;font-size:11px;color:#5f5f62;">Bình luận :  
                                <asp:Label ID="lblTop5ResComment" runat="server" Text='<%#Eval("LuotBinhLuan") %>' Font-Size="11px"></asp:Label></span></div>
                        </div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
             <div style="margin-top:5px;">
            <img alt="" src="Images/Right-banner/right-bn1.jpg" width="288" />
        </div>
        
        <div id="facebook-plugin" style="margin-top:5px;">
            <div class="fb-like-box" data-href="http://www.facebook.com/Phoamthuc.net" data-width="288" data-show-faces="true" data-border-color="#dfdfdf" data-stream="false" data-header="true"></div>
        </div>
        </div>
    </div>
</asp:Content>

